﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SQuestionMsg extends IMessageBase
    {
        public var questionIndex:int;
        public var questionId:int;
        public var shuffleOption:Dictionary;
        public var surplusSeconds:int;
        public var status:int;
        public const _type:int = 5202;
        public static var _regist:SQuestionMsg = new SQuestionMsg(true);

        public function SQuestionMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SQuestionMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.questionIndex);
            param1.writeInt(this.questionId);
            DictIntIntHelper.write(param1, this.shuffleOption);
            param1.writeInt(this.surplusSeconds);
            param1.writeInt(this.status);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.questionIndex = param1.readInt();
            this.questionId = param1.readInt();
            this.shuffleOption = DictIntIntHelper.read(param1);
            this.surplusSeconds = param1.readInt();
            this.status = param1.readInt();
            return;
        }// end function

    }
}
